package com.lcx.plugin.neteaseCloud.component.line;

import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import java.awt.*;

/**
 * 底部下划线
 *
 * @author daxiong
 * @date 2021/10/17 下午12:47
 */
public class BottomLine {

    private static Border lineBorder = new LineBorder(Color.LIGHT_GRAY);

    public static JLabel getLine(int x, int y, int width) {
        JLabel bottomLine = new JLabel();
        bottomLine.setBorder(lineBorder);
        bottomLine.setBounds(x, y, width, 1);
        return bottomLine;
    }
}
